.class final Lnbisdk/hw;
.super Ljava/lang/Object;

# interfaces
.implements Lnbisdk/gd;


# instance fields
.field private D:Lnbisdk/ap;

.field private d:Lnbisdk/ov;

.field private lg:Lnbisdk/pk;


# direct methods
.method constructor <init>(ILnbisdk/ap;)V
    .locals 2

    invoke-direct {p0}, Ljava/lang/Object;-><init>()V

    const-wide/32 v0, 0x2000000

    invoke-static {v0, v1}, Lnbisdk/pn;->k(J)Lnbisdk/ov;

    move-result-object v0

    iput-object v0, p0, Lnbisdk/hw;->d:Lnbisdk/ov;

    iput-object p2, p0, Lnbisdk/hw;->D:Lnbisdk/ap;

    invoke-virtual {p2}, Lnbisdk/ap;->aL()Lnbisdk/ed;

    move-result-object v0

    check-cast v0, Lnbisdk/pk;

    iput-object v0, p0, Lnbisdk/hw;->lg:Lnbisdk/pk;

    iget-object v0, p0, Lnbisdk/hw;->lg:Lnbisdk/pk;

    invoke-interface {v0, p1}, Lnbisdk/pk;->aF(I)V

    sget-boolean v0, Lnbisdk/bk;->DEBUG:Z

    if-eqz v0, :cond_0

    iget-object v0, p0, Lnbisdk/hw;->d:Lnbisdk/ov;

    const-string v1, "Using Persistent HashCache"

    invoke-virtual {v0, v1}, Lnbisdk/ov;->info(Ljava/lang/String;)V

    :cond_0
    return-void
.end method


# virtual methods
.method public final a(Ljava/lang/String;)Lnbisdk/bd;
    .locals 4

    const/4 v0, 0x0

    :try_start_0
    iget-object v1, p0, Lnbisdk/hw;->lg:Lnbisdk/pk;

    invoke-interface {v1, p1}, Lnbisdk/pk;->an(Ljava/lang/String;)[B

    move-result-object v1

    if-eqz v1, :cond_0

    iget-object v2, p0, Lnbisdk/hw;->d:Lnbisdk/ov;

    const-string v3, "DBCache.get hit"

    invoke-virtual {v2, v3}, Lnbisdk/ov;->info(Ljava/lang/String;)V

    new-instance v2, Lnbisdk/bd;

    invoke-direct {v2, p1, v1}, Lnbisdk/bd;-><init>(Ljava/lang/String;Ljava/lang/Object;)V
    :try_end_0
    .catch Lnbisdk/an; {:try_start_0 .. :try_end_0} :catch_0

    move-object v0, v2

    :cond_0
    :goto_0
    return-object v0

    :catch_0
    move-exception v1

    iget-object v2, p0, Lnbisdk/hw;->d:Lnbisdk/ov;

    invoke-virtual {v2, v1}, Lnbisdk/ov;->b(Ljava/lang/Throwable;)V

    goto :goto_0
.end method

.method public final a(Lnbisdk/bd;)V
    .locals 3

    :try_start_0
    iget-object v0, p0, Lnbisdk/hw;->d:Lnbisdk/ov;

    const-string v1, "DBCache.put "

    invoke-virtual {v0, v1}, Lnbisdk/ov;->info(Ljava/lang/String;)V

    iget-object v1, p0, Lnbisdk/hw;->lg:Lnbisdk/pk;

    iget-object v2, p1, Lnbisdk/bd;->ct:Ljava/lang/String;

    iget-object v0, p1, Lnbisdk/bd;->cu:Ljava/lang/Object;

    check-cast v0, [B

    invoke-interface {v1, v2, v0}, Lnbisdk/pk;->put(Ljava/lang/String;[B)V
    :try_end_0
    .catch Lnbisdk/an; {:try_start_0 .. :try_end_0} :catch_0

    :goto_0
    return-void

    :catch_0
    move-exception v0

    iget-object v1, p0, Lnbisdk/hw;->d:Lnbisdk/ov;

    invoke-virtual {v1, v0}, Lnbisdk/ov;->b(Ljava/lang/Throwable;)V

    goto :goto_0
.end method

.method public final clear()V
    .locals 1

    iget-object v0, p0, Lnbisdk/hw;->D:Lnbisdk/ap;

    invoke-virtual {v0}, Lnbisdk/ap;->aJ()V

    const-string v0, "comnimtm"

    invoke-static {v0}, Lnbisdk/ap;->h(Ljava/lang/String;)V

    return-void
.end method

.method public final close()V
    .locals 1

    iget-object v0, p0, Lnbisdk/hw;->D:Lnbisdk/ap;

    invoke-virtual {v0}, Lnbisdk/ap;->aJ()V

    return-void
.end method
